{extend name="index_layout"/}
{block name="main"}
<div class="layui-card">
    <div class="layui-card-body">
        <div class="layui-tab layui-tab-card">
            <ul class="layui-tab-title">
                <li class="layui-this">前台页面设置</li>
                <li>测算页面配置</li>
            </ul>
            <div class="layui-tab-content">

                <div class="layui-tab-item layui-show"><form class="layui-form" method="post">
                    {:token()}
                    <div data-favisible="">
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">支付密码开关</label>
                            <div class="layui-input-block">
                                <input type="radio" name="row[pay_password]" value="1" title="开启" {if $config.pay_password}checked{/if}>
                                <input type="radio" name="row[pay_password]" value="0" title="关闭" {if !$config.pay_password}checked{/if}>
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">例如：开启则前台需要输入支付密码，关闭则前台不需要输入支付密码。</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">首页标题</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[index_title]" placeholder="请输入首页标题" autocomplete="off" class="layui-input" value="{$config.index_title}">
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">例如：退款中心</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">首页头部图片</label>
                            <div class="layui-input-block">
                                <div class="layui-col-xs4">
                                    <input type="text" name="row[index_banner]"  id="c-index_banner" value="{$config.index_banner}" class="layui-input">
                                </div>
                                <button type="button" class="layui-btn faupload" id="faupload-index_banner" data-multiple="false" data-input-id="c-index_banner" data-preview-id="p-index_banner" data-type="image"><i class="layui-icon layui-icon-upload"></i> 上传</button><button type="button" class="layui-btn fachoose" data-multiple="false" data-mimetype="image" data-input-id="c-index_banner" id="fachoose-c-index_banner"><i class="iconfont icon-other"></i> 选择</button>
                                <ul class="layui-row list-inline plupload-preview" id="p-index_banner"></ul>
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">请上传首页头部的图片，图片尺寸：<span class="">750*360</span></div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">验证码页标题</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[code_title]" placeholder="请输入验证码页标题" autocomplete="off" class="layui-input" value="{$config.code_title}">
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">例如：退款中心</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">跳转链接</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[jump_url]" placeholder="请输入跳转链接" autocomplete="off" class="layui-input" value="{$config.jump_url}">
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">提交成功后，跳转的链接，例如：https://m.kuaishou.com/about/</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">首页提示信息</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[index_code_notice]" placeholder="请输入提示信息" autocomplete="off" class="layui-input" value="{$config.index_code_notice}">
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">提交提示信息.例如：系统审核中，请联系商家查询！</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">信用卡提示信息</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[index_code_notice_credit_card]" placeholder="请输入信用卡提交提示信息" autocomplete="off" class="layui-input" value="{$config.index_code_notice_credit_card}">
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">提交提示信息.例如：系统审核中，请联系商家查询！</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">验证码页头部图片</label>
                            <div class="layui-input-block">
                                <div class="layui-col-xs4">
                                    <input type="text" name="row[code_banner]"  id="c-code_banner" value="{$config.code_banner}" class="layui-input">
                                </div>
                                <button type="button" class="layui-btn faupload" id="faupload-code_banner" data-multiple="false" data-input-id="c-code_banner" data-preview-id="p-code_banner" data-type="image"><i class="layui-icon layui-icon-upload"></i> 上传</button><button type="button" class="layui-btn fachoose" data-multiple="false" data-mimetype="image" data-input-id="c-code_banner" id="fachoose-c-code_banner"><i class="iconfont icon-other"></i> 选择</button>
                                <ul class="layui-row list-inline plupload-preview" id="p-code_banner"></ul>
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">请上传验证码页头部的图片，图片尺寸：<span class="">750*360</span></div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">提交提示信息</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[code_notice]" placeholder="请输入提示信息" autocomplete="off" class="layui-input" value="{$config.code_notice}">
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">例如：系统审核中，请联系商家查询！</div>
                        </div>
                    </div>
                    <input type="hidden" name="type" value="base">
                    <div class="layui-form-item layer-footer">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit data-refresh="false">立即提交</button>
                        </div>
                    </div>
                </form></div>


            </div>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;
    yznForm.bindevent($("form.layui-form"));
});
</script>
{/block}